Alibabacloud.com offers a wide variety of articles about two way list in data structure, easily find your two way list in data structure information here online.
Note: The main purpose of this article is to record their own learning process, but also convenient to communicate with you. Reprint please specify from:
http://blog.csdn.net/ab198604
In the previous summary of the one-way linked list structure,
Data Structure linked list _ Interface Definition of two-way linked list, data structure Interface DefinitionIntroduction to two-way linked list
Each element in a two-way linked list is composed of three parts: In addition to data members and next
Previously exposed to the linked list has only one pointer, pointing to the direct successor, the entire list can only be accessed from the table header in one direction to the end of the table, the structure of the list is collectively referred to
VxWorks uses a variety of basic data structures, such as two-way linked lists, queues, and trees. This article will introduce the implementation of these basic data structures in VxWorks.
1. Two-way linked list
Two-way linked list is the simplest
Overview
Two-way linked listAlso calledDouble-linked tableIs a type of linked list. Each of its data nodes has two pointers pointing to the direct next and the direct Prev. Therefore, starting from any node in the two-way linked list, you can easily
Data structure (C implementation) ------- two-way linked list, data structure -------
Each node in a two-way linked list contains two pointer fields. one pointer field stores the storage address of its successor node, and the other pointer field
Data Structure interview II-common operations on two-way linked list tables, cyclic linked lists, and ordered linked lists
Note: The interview book has related exercises, but the ideas are relatively unclear and the layout is incorrect. The author
This article mainly introduces some ideas and code implementation to solve some operation problems on the one-way linked list.
The main problems include:
1. Insert a node into the one-way linked list
2. delete a node in a one-way linked list
3.
Data Structure BASICS (12)-Design and Implementation of two-way circular linked list
Features of two-way linked list operation:
(1) "query" is the same as a single-chain table;
(2) When "insert" and "delete", you must modify the pointer in both
Data structure (C implementation) ------- two-way linked list
Each node in a two-way linked list contains two pointer fields. one pointer field stores the storage address of its successor node, and the other pointer field stores the storage address
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.